using FluentValidation;
using ECommerce.Web.Commands;

namespace ECommerce.Web.Validation.CommandMessageValidators
{
    public class ProductQuantityMessagesValidator : AbstractValidator<ChangeProductQuantitiesInBasketMessage.ProductQuantityMessage>
    {
        public ProductQuantityMessagesValidator()
        {
            RuleFor(x => x.Quantity).GreaterThan(-1);
        }
    }
}